
package ch.raph.test.mvc.controller;

import ch.raph.test.mvc.model.AbstractModel;

public class AbstractController<T>
    {
    
    /*------------------------------------------------------------------
    attributs private
    ------------------------------------------------------------------*/
    protected AbstractModel<T> m_model;
    
    /*------------------------------------------------------------------
    constructors
    ------------------------------------------------------------------*/
    public AbstractController(AbstractModel<T> model)
        {
        m_model = model;
        }
    
    /*------------------------------------------------------------------
    methods public
    ------------------------------------------------------------------*/
    public void setData(T data)
        {
        m_model.setData(data);
        }
    
    public void reset()
        {
        m_model.reset();
        }
    }
